package week2;

public class aveage {
    public static void main(String[] args) {

    }

    public static double aveage(int[] age, int len) {
        int sum = 0;
        for (int i = 0; i < len; i++) {
            sum += age[i];

        }
        return sum * 1.0 / len;
    }
}

